<%@ page import="myschool.entity.Grade" %>
<%@ page import="java.util.List" %><%--
  Created by IntelliJ IDEA.
  User: oldliu
  Date: 2023-04-12
  Time: 10:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<ul>
  <%
      List<Grade> list= (List<Grade>) request.getAttribute("grades");
      for(Grade g:list){
  %>
  <li><%=g.getId()%>,<%=g.getGname()%></li>
<%}%>
</ul>
</body>
</html>
